const circle = require('./circleModule2');

const radius = parseFloat(process.argv[2]);
if (isNaN(radius) || radius <= 0) {
  console.log('请通过命令行参数输入有效半径，例如: node mainModule2.js 5');
} else {
  console.log('周长:', circle.circumference(radius));
  console.log('面积:', circle.area(radius));
}